import Vue from 'vue';
import App from './App.vue';
import router from './router';
import ElementUI from 'element-ui';
import VueI18n from 'vue-i18n';
import { messages } from './components/common/i18n';
import store from './store'
import './components/common/directives';
import 'babel-polyfill';
import 'element-ui/lib/theme-chalk/index.css'; // 默认主题
// import './assets/css/theme-green/index.css'; // 浅绿色主题
import './assets/css/icon.css';


import './assets/css/color-dark.css'; /*深色主题*/
import './assets/css/main.css';


Vue.config.productionTip = false;
Vue.prototype.$store = store;
Vue.use(VueI18n);
Vue.use(ElementUI, {
  size: 'small'
});
const i18n = new VueI18n({
  locale: 'zh',
  messages
});
store.commit("userGetCache")
new Vue({
  store,
  router,
  i18n,
  render: h => h(App)
}).$mount('#app');
